/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucsur.PuntoDeVentas.BusinessLogic;

import edu.ucsur.PuntoDeVentas.BusinessEntity.*;
import edu.ucsur.PuntoDeVentas.DataAccess.*;
import java.util.List;

/**
 *
 * @author JORGE
 */
public class LNCliente {

    /* INICIO: Singleton */
    private static LNCliente _instance = null;

    public static LNCliente Instance()
    {
        if (_instance == null)
            _instance = new LNCliente();
        return _instance;    
    }
    /* FIN: Singleton */
    
    public boolean insertar(ENCliente oENCLiente) throws Exception{
        boolean bResponse = ADCliente.Instance().insertar(oENCLiente);
        
        return bResponse;
    }

    public List<ENCliente> listar() throws Exception {
        return ADCliente.Instance().listar();
    }
}
